#!/bin/csh -f
## expect $DECAHOME/SRC/$1.help exists
set helpfile=$DECAHOME/SRC/$1".help"
echo "---- $1 options : "
awk '$1~/^\-/{ss="";n=NF;if(NF>11){n=11;ss="..."};for(i=1;i<=n;i++){printf $i" "}; print ss}' $helpfile | sort

## this is the old way
# awk 'match($0,/case -/){print substr($2,1,length($2)-1)}' $1 | sort | awk '{print $0" "}' | fold -s -w 70

##
